							<?php
										echo "<div id='comment_view'>";
				   						foreach($data[data] as $row)
										{?>
                                          <div class="each_comment" >
                                  		  <p ><span  class="comment_author<?php if($row[user_id]==0){echo "none";} ?>">
										  <?php echo $row['user']; ?>
                                          </span> 
                                          <span class="comment_time"><?php echo $row['time_add'];?></span>
                                          </p>
                                          <div class="each_comment_content" > <?php echo $row['content'];?></div>
                                         <div class="clear"></div>
                                       
                                           <p class="comment_reply">
                                              <a class="delete" href="javascript:quote('<?php echo $row['user'];?>')" title="Delete This Comment">Rely</a>
                                       <?php
										
										if($data[per]==1 || $data[per]==2)
										{
										?>
                                      
                                       <a class="delete" href="javascript:delete_comment(<?php echo $row['id']?>,<?php echo $_GET['id'];?>,'news')" title="Delete This Comment">Delete</a>
             						 
                                         <?php
										}
										?>
                                </p>
                                 <div class="clear"></div>
                           		 </div>
                            <?php 
							}
							echo "</div>";
						?>